home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
PROGRAMM
/
OTHER_LA
/
1410B.ZIP
/
ST3_SRC.ZIP
/
MAKE.INI
< prev
next >
Wrap
Text File
|
1989-04-01
|
2KB
|
80 lines
# This is a `make.ini' file for NDMAKE v3.7
# Customised for TurboC (Small memory model)
# The order to search for rules and files is specified by .SUFFIXES
.SUFFIXES : .exe .obj .c .asm
# Macros.
MODEL = c
MAX_ERRORS = 5
CFLAGS = -m$(MODEL) -I\tc\include -L\tc\lib -C -f -j$(MAX_ERRORS) -y -k -w- -u -c -r- -M -DTURBOC
LIBDIR = \tc\lib
LINKARGS = /m /l /s
BIN = \bin
# A universally useful target.
clean:
+-erase *.bak
+-erase *.map
+-erase *.s
+-erase *.dbg
tidy: clean
+-erase *.obj
spotless: tidy
+-erase *.exe
dir:
+-dirsort e-ndts
+-dir
# .BEFORE and .AFTER can be used to turn DPATH off and on.
.BEFORE:; @+echo For help with ndMAKE, use the command `make -h'
.AFTER:; @+echo All done!!!
# DEFAULT RULES
# To produce a `.obj' file from a `.asm' file using CHASM.
.asm.obj:; chasm $*.asm;
# To produce a `.obj' file from a `.c' file using TurboC.
.c.obj:; tcc $(CFLAGS) $*.c
# To produce a `.exe' file from an `.obj' file. Note that there is a
# problem because LIBS may be different for linking `.obj' files
# produced by different compilers (C, FORTRAN, PASCAL, etc). To avoid
# this problem you may want to have the C compiler produce `.cbj' files,
# the FORTRAN compiler produce `.fbj' files, etc. Then you could write
# specific rules for `.cbj.exe' and `.fbj.exe' which would use the correct
# libraries.
.obj.exe:
echo $(LIBDIR)\c0$(MODEL).obj $* > tmp.lnk
echo $@ >> tmp.lnk
echo $@ >> tmp.lnk
echo $(LIBDIR)\c$(MODEL).lib $(LIBDIR)\math$(MODEL).lib $(LIBDIR)\emu.lib $(LIBDIR)\graphics.lib >> tmp.lnk
tlink $(LINKARGS) @tmp.lnk
# tlink $(LINKARGS) $(LIBDIR)\c0$(MODEL).obj $*.obj, $@, $*.map, $(LIBDIR)\graphics.lib $(LIBDIR)\emu.lib $(LIBDIR)\math$(MODEL).lib $(LIBDIR)\c$(MODEL).lib
# To produce a `.exe' file from a `.asm' file.
.asm.exe:
chasm $*.asm;
link $*.obj, $@, $*.map, $(LIBS)
# To produce a `.exe' file from a `.c' file.
.c.exe:
tcc $(CFLAGS) $*.c
tmp.lnk:
echo $(LIBDIR)\c0$(MODEL).obj $* > tmp.lnk
echo $@ >> tmp.lnk
echo $@ >> tmp.lnk
echo $(LIBDIR)\c$(MODEL).lib $(LIBDIR)\math$(MODEL).lib $(LIBDIR)\emu.lib $(LIBDIR)\graphics.lib >> tmp.lnk
tlink $(LINKARGS) @tmp.lnk
# tlink $(LINKARGS) $(LIBDIR)\c0$(MODEL).obj $*.obj, $@, $*.map, $(LIBDIR)\graphics.lib $(LIBDIR)\emu.lib $(LIBDIR)\math$(MODEL).lib $(LIBDIR)\c$(MODEL).lib